package cn.school.mybatis.pojo;

import java.io.Serializable;

//对应s_subject表
public class Subject implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Long id;
	private String subjectname;
	private int classhour;
	private long gradeid;

	public Subject() {

	}

	public Subject(String subjectname, int classhour, long gradeid) {

		this.subjectname = subjectname;
		this.classhour = classhour;
		this.gradeid = gradeid;
	}

	public Subject(Long id, String subjectname, int classhour, long gradeid) {
		super();
		this.id = id;
		this.subjectname = subjectname;
		this.classhour = classhour;
		this.gradeid = gradeid;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getSubjectname() {
		return subjectname;
	}

	public void setSubjectname(String subjectname) {
		this.subjectname = subjectname;
	}

	public int getClasshour() {
		return classhour;
	}

	public void setClasshour(int classhour) {
		this.classhour = classhour;
	}

	public long getGradeid() {
		return gradeid;
	}

	public void setGradeid(long gradeid) {
		this.gradeid = gradeid;
	}

	@Override
	public String toString() {
		return "课程 [id=" + id + ", subjectname=" + subjectname + ", classhour=" + classhour + ", gradeid=" + gradeid
				+ "]";
	}

}
